function registPicker(pickerId,url,columns,tableWidth,field) {
	var condition = {};
	var dep = $('#depCity').val();
	var arr = $('#arrCity').val();
	if(dep !="中文/拼音"&&dep&&arr !="中文/拼音"&&arr){
		condition = {depCity:dep,arrCity:arr};
	}
	
	$.ajax({
        url : url,
        data: condition,
        cache : false, 
        async : false,
        type : "POST",
       	complete: function(jqXHR, textStatus){
       		var data;
       		if(jqXHR.status==200){
       			data = parseObj(jqXHR.responseText)
       		}
       		var options = {
                    columns: columns,
                    switchPageSizeApplyComboBox: false,
                    data: $.extend({}, data),
                    pageSize: 10, 
                    checkbox: true
                };
       		$('#'+pickerId).ligerComboBox({
       			width : 150,
       			slide : false,
       			selectBoxWidth : tableWidth,
       			selectBoxHeight : 310,
       			valueField : field,
       			textField : field,
       			grid : options,
       			split: ","
       		});
       	}
    });
}


function registSimplePicker(pickerId,url,columns,tableWidth,field) {
	registSimplePicker2(pickerId,url,columns,tableWidth,100,field);
}
function registSimplePicker2(pickerId,url,columns,tableWidth,height,field) {
	$.ajax({
        url : url,
        cache : false, 
        async : false,
        type : "POST",
       	complete: function(jqXHR, textStatus){
       		var data;
       		if(jqXHR.status==200){
       			data = parseObj(jqXHR.responseText)
       		}
       		$("#"+pickerId).ligerComboBox({ 
       			data: data, 
       			textField: field, 
       			columns: columns, 
       			selectBoxWidth: tableWidth, 
       			selectBoxHeight:height,
       			isMultiSelect: true,
       			split: ","
       			});
       	}
    });
}

